import os
import fnmatch

def search_files(directory, keywords):
    matched_files = []
    for root, dirs, files in os.walk(directory):
        for filename in files:
            if any(fnmatch.fnmatch(filename.lower(), f"*{keyword.lower()}*") for keyword in keywords):
                matched_files.append(os.path.join(root, filename))
    return matched_files

if __name__ == "__main__":
    directory = input("请输入文件目录: ")
    keywords = input("请输入要搜索的关键字(多个关键字用空格分隔): ").split()
    results = search_files(directory, keywords)
    for result in results:
        print(result)